MoreExam
1. Question Content...
EXPLANATION
Answer: X - EXPLANATION Content.
Question1: Given a template rendered by a controller with caching and a remote include without caching, which situation applies?
Question2: Which three operations should be done in a controller?Choose 3 answers
Question3: Given the above OCAPI definitions, which permission or permissions apply?
Question4: Given a NewsletterSubscription custom object that has a key attribute named email of type String, what is the correct syntax to create the NewsletterSubscription custom object and persist it to the database?
Question5: A developer has the following files in template/resources:account.proiertiesweight.unit=kilosaccount_en.propiertiesweight.unit=stonesaccount_en_US.propiertiesweight.unit= poundsUsing the default locale configuration, what is the current outcome of the page that renders the account.isml template snippet below when visiting the Sofrefront with the English for Canada(en_CA) locale= Your parcel weighs 10 ${Resource.msg('weight.unit','account')}
Question6: The developer has been given the following business requirement:The shipping method, "Free Standard Ground Shipping" has an exclusion for products with 'category equals or is child of electronics-televisions.' The marketing department has scheduled a sale offering a "Free Standard Ground Shipping" method for brand XyzTv televisions for the next 3 months.What method accomplishes this while following best practices'
Question7: Universal Containers needs to have Apple Pay disabled for the country of Spain.Which Business Manager module should the Developer use to meet this requirement?
Question8: A merchant has complained to the developers that some products are not appearing in the storefront and has asked them to diagnose and solve the issue.Which two factors might be causing a product to be hidden?Choose 2 answers
Question9: A merchant has a content slot on a page that currently displays products based on the top Sellers for the current week.They wish to change this functionality and, instead, have the slot render a specific content asset so that the content experience is more personalized to the visitors.Which two actions are necessary to make this change?Choose 2 answers
Question10: A merchant has a requirement to sell a combination of four existing products with a unique product ID.This collection will be known as 'Our Top Combo', and is base don the merchant's trading information that shows this combination to be in high demand.What does the developer need to do next to fulfill this requirement?
Question11: Universal Containers has expanded its implementation to support German with a locale code of de. The current resource bundle is checkout.properties.To which file should the developer add German string values?
Question12: A Digital Developer noticed that cartridges in their workspace are NOT executing. The Developer confirms that the cartridges are uploaded to the B2C Commerce server connection's target version directory.Which action potentially solves this problem?
Question13: A developer has a sandbox with code to log a message during execution, and the following code:After the code executes, the developer does not see any log file with the message in the WebDAV folder. Which two tasks does the developer need to perform to correct this issue?Choose 2 answers
Question14: A merchant checked the "Show Orderable Products Only" preference in Business Manager. What impact does this have on the Storefront from a user perspective?
Question15: Given the customer basket described below:* A customer has an existing basket that consists of multiple items.* One of the items is identified as a gift item by an attribute at the product line item.The developer needs to write custom code to fetch the customer basket and then modify the basket based upon the items in the cart. If the basket contains any gift items, modify the basket and create a separate shipment for the gift item.Four hooks are required to make the modification, beginning with modifyGETRespone and ending with validatebasket.* Dw.ocapi.shop.basket.modifyGETResponse* -- missing hook -* -- missing hook --* dw.ocapi.shop.basket.validateBasketWhat are the two missing hooks in the middle?
Question16: A merchant uploads an image using the Content Image Upload module of Business Manager.Which three modules can the merchant or developer use to display the image on the Storefront7 Choose 3 answers
Question17: A Digital Developer is requesting product information for an external integration. The following Open Commerce API (OCAPI) request is NOT functioning correctly:How should the Developer change the request?
Question18: A Digital Developer needs to check for product inventory in a specific inventory list using the Open Commerce API.An example request URL is:Which resource_id value enables the appropriate resource?
Question19: An instance has custom logging enabled. The log reaches the file size limit.What happens in this situation?
Question20: The developer created a new Storefront category in storefront-catalog-m-en, but when viewing the Storefront site, the category is not visible.What are two possible reasons?
Question21: A developer is given the requirement to add a step to the existing business logic of the registration process. How should the developer modify the route that handles the customer registration?
Question22: Given the requirements:* To show the washing instructions for a clothing product on a dedicated section the detail page* Washing instructions come from the product information manager(PIM)* To have this attribute available to localize in the Storefront.Which action meets these requirements?
Question23: A developer is working on a new site for the U.S based on an existing Canadian site. One of the requirements is a change to the address form. The current Canadian form has an <options> list with the correct two-letter abbreviation for the provinces.The U.S. requirements are to:* Have an <options> list with the correct two-letter abbreviation for the states in place of the province field.* Set the U.S site locale.* Add the options list field definition to the XML file.How should the developer set up the files before making the required edits?
Question24: A Digital Developer added a file named MyBusinessController.js in the cartridge named app_project. The project design calls for this new file to override MyBusinessController.js in client_project. The client_project cartridge contains other necessary functionality. Additional functionality is also included in the storefront_core and storefront_controllers cartridges.Which cartridge path meets the project requirements?
Question25: A Digital Developer is working on a multi-site realm. A new site requires a different layout for the account landing page. The business logic and data model remain the same. The existing code is in AccountControl.js and accountlanding.isml in the app_storefront cartridge. The app_storefront cartridge contains code for all other business functions. The cartridge path for the new site is currently int_cybersource:int_paypal:app_storefront.The Developer creates a new cartridge named app_newsite that contains only the accountlanding.isml template for the new site.Which modification should be made to the new cartridge path?
Question26: A developer needs to update the package.json file so that it points to the hock file for a cartridge, using the hooks keyword. Which snippets work correctly when added to the file?:
Question27: Given the SFRA Controller below:Why would a JavaScript debugger, that is stopped at line 06, fall to show the viewdata variable in the inspection tool?
Question28: Given the code snippet aboce, what should be added after this code so it can be used for page component display?
Question29: A developer uses the call() instance method of dw.svc.Service to invoke a web service and implemented the callback methods defined by the dw.avc.ServiceCaliback class.Which callback method is required only when invoking a SOAP service?
Question30: Universal Containers specifies a new category hierarchy for navigating the digital commerce storefront. A Digital Developer uses Business Manager to manually create a catalog with the specified category hierarchy, then uses the Products & Catalogs > Import & Export module to export the catalog as a file.How can other Developers with sandboxes on the same realm create the same catalog in their own sandboxes?
Question31: A developer is importing edits for two different sites into the same sandbox, and is provided with four different files.Which two XML files should the developer import using the site-specific Merchant Tools import modules, instead of the Administration section import modules?Choose 2 answers.
Question32: A Digital Developer selects "Show Orderable Products Only" in the Search > Search Preferences Business Manager module.Which business goal does this accomplish?
Question33: Universal Containers sells physical gift cards for the holidays.What needs to occur to guarantee the cards will always be available?
Question34: Given a NewsletterSubscription custom object that has a key attribute named email of type String, what is the correct syntax to create the NewsletterSubscription custom object and persist it to the database?
Question35: A client has a requirement to render different content on the homepage based on if the customer is logged in or guest user.What should a developer implement to achieve this requirement?
Question36: Consider the following information:* A merchant has this three-tier category structure setup in the Storefront catalog:New Arrivals > Women > Clothing* The category named Clothing has all the clothing items for Women and is merchandised.* A Search Refinement named Newness is correctly configured for the Clothing category.When a merchandiser views the Clothing category, the Search Refinement appears and Works as expected. However, the merchandiser does not see the Search Refinement when searching for Clothing via the Storefront search.What is the Reason?
Question37: Which code sample is required to use a custom tag provided in SiteGenesis in an ISML template?
Question38: A Digital Developer is inspecting the weekly service status report for a critical internally-hosted web service used in the application and notices that there are too many instances of unavailability.Which two solutions are possible options to reduce the unavailability of the service? (Choose two.)
Question39: A Digital Developer is working on a project to convert a pipeline to a JavaScript controller. UX Studio has a functioning pipeline debugger configured for the site. Assume the Developer will add a breakpoint to the controller when it is written.What must be done in order to use the debugger with the new controller when it is written?
Question40: A developer needs to show only car accessories when shoppers use the search term car accessories and exclude technology accessories and household accessories.Given the above requirement, what is the recommended approach using the Search Dictionaries Dashboard?
Question41: A developer is tasked with implementing the necessary code for a new Page Designer component.What are the two purposes of the JSON metadata definition file that the developer creates7 Choose 2 answers
Question42: Business Manager has the configuration:* Active Log category is "root"* Log level of WARNThe code below is executing:var log = Logger.getLogger("products");Using this information, which two logs will be written?Choose 2 answers
Question43: Universal Containers wants to change a content slot that is currently configured to display a content asset. Now they want the slot to display the top five selling boxes for the week.Which two changes need to be made for this to occur? (Choose two.)
Question44: A Digital Developer is asked to optimize controller performance by lazy loading scripts as needed instead of loading all scripts at the start of the code execution.Which statement should the Developer use to lazy load scripts?
Question45: Universal Containers is preparing their storefront to use Open Commerce APIs (OCAPI).To which hook should the Digital Developer move taxation logic to ensure consistent order totals within B2C Commerce?
Question46: A developer has a specification to integrate with a REST API for retrieving traffic conditions. The service expects parameters to be form encoded.Which service type should the developer register?
Question47: There are three logging categories: category1, category1.eu, and category1.us.In Business Manager, category1 is enabled for WARN level and no other categories are configured. All custom log targets are enabled.The code segment below executes.What is the result'
Question48: A Digital Developer is tasked with setting up a new Digital Server Connection using UX Studio in their sandbox.Which three items are required to accomplish this task? (Choose three.)
Question49: A retailer notices that the Account Addresses page is showing the wrong shopper's address.Which tool should the developer start with to identify the issue?
Question50: A developer needs to perform the same additional checks before completing multiple routes in a custom controller, in order to decide whether to render a template or redirect the user to a different page.According to SFRA best practices, what is the correct approach to improve code reusability in this scenario7
Question51: When inspecting the weekly service status report for a critical internally hosted web service used in the application, a developer notices that there are too many instances of unavailability.Which two solutions can reduce the unavailability of the service?Choose 2 answers.
Question52: A digital instance has one site, with one master product catalog separate from the site catalog. Some, but NOT all, products in the master catalog are assigned to categories of the site catalog.Using Business Manager, how can a Digital Developer create a catalog export file that contains only the products assigned to the site catalog?
Question53: A Digital Developer adds the following line of code to a script.The code executes without error; however, the log file on disk does NOT contain the log message.Which two actions should be completed to write the log message to disk? (Choose two.)
Question54: A merchant wants customers to be able to order gift vouchers via their site. Since they can issue an unlimited number of these digital vouchers, this item should be available to sell at all items.How can a developer use Business Manager to ensure that the gift vouchers are always available?
Question55: A developer is implementing new Page Designer content on a merchant's Storefront and adds the line below toWhat does this achieve?
Question56: A Newsletter controller contains the following route:Server.post('Subscribe', function (req,res,next){var newsletterForm = server.forms.getForm('newsletter');var CustomObjectMgr = require('dw/object/CustomObjectMgr'); if(newsletterForm.valid){ try{ var CustomObject = CustomObjectMgr.createCustomObejct('NewsletterSubscription', newsletterform.email.value); CustomObject.custom.firstName = newsletterForm.fname.value; CustomObject.custom.lastName = newsletterForm.lname.value;-} catch(e){//Catch error here}}next();});Assuming the Custom Object metadata exists, why does this route fail to render the newsletter template when the subscription form is correctly submitted?
Question57: A Storefront is designed so that multiple pages share a common header and footer layout.Which ISML tag should a developer use on the templates for these pages to avoid code repetition in the most effective way?